from books.testDRF import views

urlpatterns = [

]

from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register('books', views.BookViewSet, base_name='books')
urlpatterns += router.urls

router1 = DefaultRouter()
router1.register('heroes', views.HeroViewSet, base_name='heroes')
urlpatterns += router1.urls
